/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.ipccenter.beans;

import ru.ipccenter.entities.Human;
import ru.ipccenter.entities.Article;
import java.sql.Timestamp;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author sm-ni_000
 */
@Local
public interface ArticleBeanLocal {
    void create(Article entity);
    void save(Article entity);
    void delete(Article entity);
    Article find(Object id);
    Human findAuthor(String title);
    List<Article> findAllByAuthor (Human author);
    List<Article> findByDate(Timestamp beginDate, Timestamp endDate);
}
